﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IterationLife.Domains.Sports.Dtos.MTDatas;

namespace IterationLife.Domains.Sports.Dtos.MTSports
{
    public class MTPercentage
    {
        public decimal? per { get; set; }
        public decimal? num { get; set; }
    }


    public static class MTPercentageExtension
    {
        public static MTPercentageData ToMtPercentageData(this MTPercentage percentage)
        {
            return new MTPercentageData()
            {
                Percentage = percentage.per,
                Value = percentage.num
            };
        }
    }
}